package mlz.arr;


import java.util.Arrays;

//数组的内存
public class Demo06 {
    public static void main(String[] args) {
        //int[] arr1 = new int[]{11,22,33};

        int[] arr1 = {11,22,33};
        int[] arr2 = arr1;
        System.out.println(Arrays.toString(arr1));//[11, 22, 33]
        System.out.println(Arrays.toString(arr2));//[11, 22, 33]
        arr2[2] = 99;
        arr2 = null;
        //System.out.println(arr2[0]);//NullPointerException
        System.out.println(arr1[2]);//99

    }
}
